import {http,baseURL} from "../plugin/axios.js";
import Qs from "qs";
const url_pre = "http://localhost:8082"


export const sendPhoneCheckCode = (phone)=>{
    return http({
        method:"post",
        url:baseURL+"/tool/public/phone_code",
        data:JSON.stringify({
          phone:phone
        })
    })
}

export const getLoginQrCode = (deviceId)=>{
    return http({
        method:"get",
        url:baseURL+"/tool/public/qr_code",
        params:{
            deviceId
        },
        paramsSerializer: function (params) {
            return Qs.stringify(params, {arrayFormat: 'brackets'})
        }
    })
}


